package com.rfid.mqtt.bean;

import java.util.List;

public class VoiceControlRespon {

    /**
     * data : {"question":{"questionId":"865697040018837_20231224165827003","text":"停车","lang":"CH"},"answer":{"score":1,"tts":[{"emoji":"","payload":"","action":{"param":{"duration":0,"frame_no":0,"extra_params":{"thirdparty":"no"},"play_type":"","video_url":"","domain":"dance_stop","guide_tip":"","params":{},"pic_url":"","intent":"Stop","url":""},"display":"","name":""},"text":"","lang":"cmn-Hans-CN","type":"operation"}],"emotion":{"score":0,"name":""},"source":"user_service"},"robotCode":"PATROLCPAT-CM-B33XXXPAT13S2348000029"}
     * cmd : 90017
     */

    private DataBean data;
    private int cmd;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getCmd() {
        return cmd;
    }

    public void setCmd(int cmd) {
        this.cmd = cmd;
    }

    public static class DataBean {
        /**
         * question : {"questionId":"865697040018837_20231224165827003","text":"停车","lang":"CH"}
         * answer : {"score":1,"tts":[{"emoji":"","payload":"","action":{"param":{"duration":0,"frame_no":0,"extra_params":{"thirdparty":"no"},"play_type":"","video_url":"","domain":"dance_stop","guide_tip":"","params":{},"pic_url":"","intent":"Stop","url":""},"display":"","name":""},"text":"","lang":"cmn-Hans-CN","type":"operation"}],"emotion":{"score":0,"name":""},"source":"user_service"}
         * robotCode : PATROLCPAT-CM-B33XXXPAT13S2348000029
         */

        private QuestionBean question;
        private AnswerBean answer;
        private String robotCode;

        public QuestionBean getQuestion() {
            return question;
        }

        public void setQuestion(QuestionBean question) {
            this.question = question;
        }

        public AnswerBean getAnswer() {
            return answer;
        }

        public void setAnswer(AnswerBean answer) {
            this.answer = answer;
        }

        public String getRobotCode() {
            return robotCode;
        }

        public void setRobotCode(String robotCode) {
            this.robotCode = robotCode;
        }

        public static class QuestionBean {
            /**
             * questionId : 865697040018837_20231224165827003
             * text : 停车
             * lang : CH
             */

            private String questionId;
            private String text;
            private String lang;

            public String getQuestionId() {
                return questionId;
            }

            public void setQuestionId(String questionId) {
                this.questionId = questionId;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getLang() {
                return lang;
            }

            public void setLang(String lang) {
                this.lang = lang;
            }
        }

        public static class AnswerBean {
            /**
             * score : 1
             * tts : [{"emoji":"","payload":"","action":{"param":{"duration":0,"frame_no":0,"extra_params":{"thirdparty":"no"},"play_type":"","video_url":"","domain":"dance_stop","guide_tip":"","params":{},"pic_url":"","intent":"Stop","url":""},"display":"","name":""},"text":"","lang":"cmn-Hans-CN","type":"operation"}]
             * emotion : {"score":0,"name":""}
             * source : user_service
             */

            private int score;
            private EmotionBean emotion;
            private String source;
            private List<TtsBean> tts;

            public int getScore() {
                return score;
            }

            public void setScore(int score) {
                this.score = score;
            }

            public EmotionBean getEmotion() {
                return emotion;
            }

            public void setEmotion(EmotionBean emotion) {
                this.emotion = emotion;
            }

            public String getSource() {
                return source;
            }

            public void setSource(String source) {
                this.source = source;
            }

            public List<TtsBean> getTts() {
                return tts;
            }

            public void setTts(List<TtsBean> tts) {
                this.tts = tts;
            }

            public static class EmotionBean {
                /**
                 * score : 0
                 * name :
                 */

                private int score;
                private String name;

                public int getScore() {
                    return score;
                }

                public void setScore(int score) {
                    this.score = score;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }

            public static class TtsBean {
                /**
                 * emoji :
                 * payload :
                 * action : {"param":{"duration":0,"frame_no":0,"extra_params":{"thirdparty":"no"},"play_type":"","video_url":"","domain":"dance_stop","guide_tip":"","params":{},"pic_url":"","intent":"Stop","url":""},"display":"","name":""}
                 * text :
                 * lang : cmn-Hans-CN
                 * type : operation
                 */

                private String emoji;
                private String payload;
                private ActionBean action;
                private String text;
                private String lang;
                private String type;

                public String getEmoji() {
                    return emoji;
                }

                public void setEmoji(String emoji) {
                    this.emoji = emoji;
                }

                public String getPayload() {
                    return payload;
                }

                public void setPayload(String payload) {
                    this.payload = payload;
                }

                public ActionBean getAction() {
                    return action;
                }

                public void setAction(ActionBean action) {
                    this.action = action;
                }

                public String getText() {
                    return text;
                }

                public void setText(String text) {
                    this.text = text;
                }

                public String getLang() {
                    return lang;
                }

                public void setLang(String lang) {
                    this.lang = lang;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public static class ActionBean {
                    /**
                     * param : {"duration":0,"frame_no":0,"extra_params":{"thirdparty":"no"},"play_type":"","video_url":"","domain":"dance_stop","guide_tip":"","params":{},"pic_url":"","intent":"Stop","url":""}
                     * display :
                     * name :
                     */

                    private ParamBean param;
                    private String display;
                    private String name;

                    public ParamBean getParam() {
                        return param;
                    }

                    public void setParam(ParamBean param) {
                        this.param = param;
                    }

                    public String getDisplay() {
                        return display;
                    }

                    public void setDisplay(String display) {
                        this.display = display;
                    }

                    public String getName() {
                        return name;
                    }

                    public void setName(String name) {
                        this.name = name;
                    }

                    public static class ParamBean {
                        /**
                         * duration : 0
                         * frame_no : 0
                         * extra_params : {"thirdparty":"no"}
                         * play_type :
                         * video_url :
                         * domain : dance_stop
                         * guide_tip :
                         * params : {}
                         * pic_url :
                         * intent : Stop
                         * url :
                         */

                        private int duration;
                        private int frame_no;
                        private ExtraParamsBean extra_params;
                        private String play_type;
                        private String video_url;
                        private String domain;
                        private String guide_tip;
                        private ParamsBean params;
                        private String pic_url;
                        private String intent;
                        private String url;

                        public int getDuration() {
                            return duration;
                        }

                        public void setDuration(int duration) {
                            this.duration = duration;
                        }

                        public int getFrame_no() {
                            return frame_no;
                        }

                        public void setFrame_no(int frame_no) {
                            this.frame_no = frame_no;
                        }

                        public ExtraParamsBean getExtra_params() {
                            return extra_params;
                        }

                        public void setExtra_params(ExtraParamsBean extra_params) {
                            this.extra_params = extra_params;
                        }

                        public String getPlay_type() {
                            return play_type;
                        }

                        public void setPlay_type(String play_type) {
                            this.play_type = play_type;
                        }

                        public String getVideo_url() {
                            return video_url;
                        }

                        public void setVideo_url(String video_url) {
                            this.video_url = video_url;
                        }

                        public String getDomain() {
                            return domain;
                        }

                        public void setDomain(String domain) {
                            this.domain = domain;
                        }

                        public String getGuide_tip() {
                            return guide_tip;
                        }

                        public void setGuide_tip(String guide_tip) {
                            this.guide_tip = guide_tip;
                        }

                        public ParamsBean getParams() {
                            return params;
                        }

                        public void setParams(ParamsBean params) {
                            this.params = params;
                        }

                        public String getPic_url() {
                            return pic_url;
                        }

                        public void setPic_url(String pic_url) {
                            this.pic_url = pic_url;
                        }

                        public String getIntent() {
                            return intent;
                        }

                        public void setIntent(String intent) {
                            this.intent = intent;
                        }

                        public String getUrl() {
                            return url;
                        }

                        public void setUrl(String url) {
                            this.url = url;
                        }

                        public static class ExtraParamsBean {
                        }

                        public static class ParamsBean {
                        }
                    }
                }
            }
        }
    }
}
